package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Author by 孙有泽
 * @Date 2025/3/6 20:51
 * @Description userMaperr
 */
@Mapper
public interface UserMapper {

    User selectByOpenId(@Param("openId") String oponId);

    void insert(User build);

    @Select("select * from user where id = #{userId}")
    User selectById(Long userId);
}
